package com.zhage.service;

import com.zhage.dao.TeacherRepository;
import com.zhage.domain.Teacher;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
@Transactional
public class TeacherService {

    @Autowired
    TeacherRepository teacherRepository;


    public List<Teacher> findAll(){
        return teacherRepository.findAll();
    }

}
